package com.krtech.wecard.module.sys.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 二维码截图风控记录
 */
@ApiModel(value = "com-krtech-wecard-module-sys-entity-OrcodeLog")
@Data
@TableName(value = "orcode_log")
public class OrcodeLogExport implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 创建人
     */
    @TableField(value = "CREATED_BY")
    @ApiModelProperty(value = "创建人")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "CREATED_TIME")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    /**
     * 更新人
     */
    @TableField(value = "UPDATED_BY")
    @ApiModelProperty(value = "更新人")
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATED_TIME")
    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;



    /**
     * 学工号
     */
    @TableField(value = "code")
    @ApiModelProperty(value = "学工号")
    @Excel(name = "工号")
    private String code;


    /**
     * 姓名
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "姓名")
    @Excel(name = "姓名")
    private String name;



    /**
     * 截屏时间
     */
    @TableField(value = "screenshots_time")
    @ApiModelProperty(value = "截屏时间")
    @Excel(name = "截屏时间",format = "yyyy-MM-dd HH:mm:ss")
    private Date screenshotsTime;

    /**
     * 触发功能
     */
    @TableField(value = "trigger_function")
    @ApiModelProperty(value = "触发功能")
    private String triggerFunction;

    /**
     * 触发功能code
     */
    @TableField(value = "trigger_function_code")
    @ApiModelProperty(value = "触发功能code")
    private String triggerFunctionCode;

    /**
     * 软删除
     */
    @TableField(value = "del_flag")
    @ApiModelProperty(value = "软删除")
    @TableLogic
    private Integer delFlag;


    @ApiModelProperty(value="是否洞见，0：未冻结，1：冻结")
    @Excel(name = "状态",replace = {"未冻结_0","冻结_1"})
    private Integer hasFreeze;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CREATED_BY = "CREATED_BY";

    public static final String COL_CREATED_TIME = "CREATED_TIME";

    public static final String COL_UPDATED_BY = "UPDATED_BY";

    public static final String COL_UPDATED_TIME = "UPDATED_TIME";

    public static final String COL_NAME = "name";

    public static final String COL_CODE = "code";

    public static final String COL_SCREENSHOTS_TIME = "screenshots_time";

    public static final String COL_TRIGGER_FUNCTION = "trigger_function";

    public static final String COL_TRIGGER_FUNCTION_CODE = "trigger_function_code";

    public static final String COL_DEL_FLAG = "del_flag";
}